package com.zky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zky.domain.ResponseResult;
import com.zky.domain.dto.AddArticleDto;
import com.zky.domain.dto.UpdataArticleDto;
import com.zky.domain.entity.Article;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * 文章表(Article)表服务接口
 *
 * @author makejava
 * @since 2023-06-17 14:50:36
 */
public interface ArticleService extends IService<Article> {

    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(@PathVariable("id") Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult addArticle(AddArticleDto article);

    ResponseResult getAllArticleList(Integer pageNum, Integer pageSize, String title, String summary);

    ResponseResult getArticleById(Long id);

    ResponseResult updateArticle(UpdataArticleDto updataArticleDto);

    ResponseResult deleteArticle(Long id);
}

